package com.shigen.file.controller;

import com.shigen.file.common.Result;
import com.shigen.file.service.IBaseUserFileService;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 用户文件表 前端控制器
 * </p>
 *
 * @author shigen.fu
 * @since 2022-06-04
 */
@RestController
@RequestMapping("baseUserFile")
public class BaseUserFileController {
  @Resource
  private IBaseUserFileService baseUserFileService;

  /**
   * 获得当前登录用户的文件树
   */
  @GetMapping(value = "tree")
  public Result<List> getUserFileTree() {
    return Result.success(baseUserFileService.getUserFileTree());
  }

}
